package com.iengoo.inductionms.service.impl;

import com.iengoo.inductionms.entity.EducationExperience;
import com.iengoo.inductionms.mapper.EducationExperienceMapper;
import com.iengoo.inductionms.service.EducationExperienceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zpym
 * @CopyRight (C) http://www.iengoo.com
 * @brief
 * @email 122162005@qq.com
 * @date 2019-03-26 12:42
 */
@Service
public class EducationExperienceServiceImpl implements EducationExperienceService {
    @Autowired
    private EducationExperienceMapper mapper;

    @Override
    public int insert(EducationExperience record) {
        return mapper.insert(record);
    }

    @Override
    public int insertSelective(EducationExperience record) {
        return mapper.insertSelective(record);
    }

    @Override
    public List<EducationExperience> queryAll(int userId) {
        return mapper.queryAll(userId);
    }

    @Override
    public EducationExperience findById(int id) {
        return mapper.findById(id);
    }

    @Override
    public int update(EducationExperience e) {
        return mapper.update(e);
    }
}
